package com.aki.ai_property.dao;

import com.aki.ai_property.dto.AdviseHouseholderDto;
import com.aki.ai_property.dto.AiHomeDto;
import com.aki.ai_property.entity.Lessee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ━━━━━━永无BUG!━━━━━━
 *
 * @author AKI
 * @date 2022/8/30
 */
public interface AdviseHouseholderDtoDao {
    /** 新增租户  */
    int save(AdviseHouseholderDto adviseHouseholderDto);
    /** 删除租户 根据ID来删除 */
    int delete(Integer id);
    /** 更改租户信息  */
    int update(AdviseHouseholderDto adviseHouseholderDto);
    /** 分页查询 带条件查询*/
    List<AdviseHouseholderDto> selectPage(@Param("name") String name, @Param("start") int start, @Param("size") int size);
    /** 总条数查询 */
    long selectCount(String name);

}
